package com.ls.aop.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.ls.aop.security.InheritAnnotation;

@Service("productService")
@InheritAnnotation
public class ProductService {
	private Logger logger = LoggerFactory.getLogger(this.getClass());
//	@Autowired
//	private PermissionService service ;
	
//	@AdminOnly
	public void add(Long a) throws IllegalAccessException{
//		service.isAllowed();//业务操作需要该代码，
		logger.info("in ProductService add a service");
	}
//	@AdminOnly
	public String del2(Long a ,String b) {
//		service.isAllowed();
		logger.info( "in ProductService del a service");
		return null;
	}
}
